﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PSE.Deployment.SetupBase
{
    public class VersionComparer : IComparer<PSE.Framework.Common.Version>
    {
        public int Compare(PSE.Framework.Common.Version x, PSE.Framework.Common.Version y)
        {
            int ret = 0;

            if (x < y)
                ret = -1;
            else if (x == y)
                ret = 0;
            else if (x > y)
                ret = 1;

            return ret;
        }
    }
}
